import { get } from 'request-promise';
import { writeFile } from 'fs-extra';

async function getCleanCodeArticle() {
    try{
        let articles = await get("https://en.wifipedia.org/wiki/Robert")
        await writeFile("article.html", body);
        console.log("file written");
    } catch(err) {
        console.log(err);
    }
    console.log("写入成功");
}

await getCleanCodeArticle();